using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ProjectManageSystemApi.DbEntity {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "user_check_detail", DisableSyncStructure = true)]
	public partial class UserCheckDetail {

		[JsonProperty, Column(Name = "id", DbType = "int unsigned", IsPrimary = true, IsIdentity = true)]
		public uint Id { get; set; }

		/// <summary>
		/// user_check_info表外键
		/// </summary>
		[JsonProperty, Column(Name = "user_check_id", DbType = "int")]
		public uint UserCheckId { get; set; }

		/// <summary>
		/// worker_type_info 表外键
		/// </summary>
		[JsonProperty, Column(Name = "worker_type_id", DbType = "int unsigned")]
		public uint WorkerTypeId { get; set; }

		/// <summary>
		/// 人数
		/// </summary>
		[JsonProperty, Column(Name = "number_of_people", DbType = "int")]
		public int NumberOfPeople { get; set; }

		/// <summary>
		/// 价格
		/// </summary>
		[JsonProperty, Column(Name = "price")]
		public decimal Price { get; set; }

		/// <summary>
		/// 0: 存在；100：删除
		/// </summary>
		[JsonProperty, Column(Name = "status")]
		public byte Status { get; set; }

		[Navigate(nameof(WorkerTypeId))]
		public WorkerTypeInfo WorkerTypeInfo { get; set; }
	}
}
